package com.sina.shop.dao.address;

import com.sina.shop.core.BaseDao;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.address.Address;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description: 地址管理
 * 段浩杰   2018-02-05-10:18
 */
public interface AddressDao extends BaseDao {

    /*根据用户id得到所拥有的地址列表*/
    List<Address> getAddressListByAdminId(Long adminId);

    /*根据id删除地址*/
    Integer deleteAddress(Long id);

    int updateAddressStatusUse(Long id);

    int updateAddressStatusNot(Long aid);
}
